<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="__CSS__/pintuer.css">
    <link rel="stylesheet" href="__CSS__/admin.css">
    <script src="__JS__/jquery.js"></script>
    <script src="__JS__/pintuer.js"></script>
    <style>
        .dataTables_paginate{text-align:center;margin-top:20px;margin-bottom: 20px;}
        .pagination li{margin:0px 10px; border:1px solid #D200D2;padding: 3px 8px;display: inline-block;}
        .pagination .active{background-color: rgba(35,162,219,0.98);color: 	#FF359A;}
        .pagination .disabled{color:	#00DB00;}
    </style>
</head>
<body>
<div class="panel-head"><strong class="icon-reorder"> 内容列表</strong> <a href="" style="float:right; display:none;">添加字段</a></div>
<div class="padding border-bottom">
    <ul class="search" style="padding-left:10px;">
        <li> <a class="button border-main icon-plus-square-o" href="trytwo_add.html"> 添加内容</a> </li>
        <form action="" id="F" method="get">
            <li>搜索：</li>
            <!--<li>首页-->
                <!--<select name="is_show" style="padding:5px 15px; border:1px solid #ddd;" >-->
                    <!--<option value="">选择</option>-->
                    <!--<option value="1">是</option>-->
                    <!--<option value="0">否</option>-->
                <!--</select>-->
                <!--推荐-->
                <!--<select name="is_hot" style="padding:5px 15px; border:1px solid #ddd;" >-->
                    <!--<option value="">选择</option>-->
                    <!--<option value="1">是</option>-->
                    <!--<option value="0">否</option>-->
                <!--</select>-->
                <!--下架-->
                <!--<select name="is_down" style="padding:5px 15px; border:1px solid #ddd;" >-->
                    <!--<option value="">选择</option>-->
                    <!--<option value="1">是</option>-->
                    <!--<option value="0">否</option>-->
                <!--</select>-->
            <!--</li>-->
            <!--<li>-->
                <!--<select name="cid" style="padding:5px 15px; border:1px solid #ddd;">-->
                    <!--<option value="">请选择分类</option>-->
                    <!--<optgroup label="手机壳">-->
                        <!--<option value="">三星</option>-->
                        <!--<option value="">华为</option>-->
                        <!--<option value="">小米</option>-->
                    <!--</optgroup>-->
                    <!--<optgroup label="杯子"></optgroup>-->
                    <!--<optgroup label="U盘"></optgroup>-->
                <!--</select>-->
            <!--</li>-->
            <li>
                <input type="text" placeholder="请输入搜索关键字" name="brand_name" class="input" style="width:200px; line-height:17px;display:inline-block" value="<{$data['brand_name']|default=''}>" />
                <input type="radio" name="recommended" value="2" {eq name="data['recommended']|default='2'" value="2"}checked{/eq}>全部
                <input type="radio" name="recommended" value="1" {eq name="data['recommended']|default='2'" value="1"}checked{/eq}>推荐
                <input type="radio" name="recommended" value="0" {eq name="data['recommended']|default='2'" value="0"}checked{/eq}>不推荐
                <label><input type="checkbox" name="brand_logo[]" value="1" {in name="1" value="$data['brand_logo']|default=[]"}checked{/in}>有图</label>
                <label><input type="checkbox" name="brand_logo[]" value="2" {in name="2" value="$data['brand_logo']|default=[]"}checked{/in}>无图</label>
                <a href="javascript:F.submit();" class="button border-main icon-search" >搜索</a></li>
    </ul>
    </form>
<table class="table table-hover text-center">
    <tr>
        <th width="100" style="text-align:left; padding-left:20px;">ID</th>
        <th width="10%">品牌名称</th>
        <th width="10%">类别</th>
        <th width="15%">图片LOGO</th>
        <th width="20%">排序</th>
        <th width="20%">推荐</th>
        <th width="20%">上架</th>
        <th width="20%">添加</th>
    </tr>
    {foreach name="list" item="v" empty="$empty"}
    <tr>
        <td style="text-align:left; padding-left:20px;"><{$v['brand_id']}></td>
        <td><{$v['brand_name']|raw}></td>
        <td><{$v['tag']}></td>
        <td width="10%"><img src="__DATA__<{$v['brand_logo']|default='data/default.png'}>" alt="" width="70" height="50" /></td>
        <td><font color="#00CC99"><{$v['sort_order']}></font></td>
        <td><{$v['recommended']}></td>
        <td><img src="__IMAGES__/<{$v['if_show']}>.png"/></td>
        <td><div class="button-group"> <a class="button border-main" href="<{:url('brand/changetrytwo',array_merge(request()->get(),['id'=>$v['brand_id']]))}>"><span class="icon-edit"></span>修改</a> <a class="button border-red" href="javascript:void(0)" onclick="return del(1,1,1)"><span class="icon-trash-o"></span> 删除</a> </div></td>
    </tr>
    {/foreach}

    <!--<tr>-->
        <!--<td colspan="8"><div class="pagelist"> <a href="">上一页</a> <span class="current">1</span><a href="">2</a><a href="">3</a><a href="">下一页</a><a href="">尾页</a> </div></td>-->
    <!--</tr>-->

</table>
    <{$list|raw}>
</body>
</html>